import request from '@/utils/request/index.js'
export default {
	/**
	 * 根绝状态获取订单列表
	 * @param {Object} status
	 * @param {Object} page
	 * @param {Object} limit
	 */
	getOrderList(status,page,limit){
		return request.request({
			url: '/h5/nocorder/list',
			method: 'post',
			data: {
				status: status,
				page: page,
				limit: limit
			}
		})
	},
	/**
	 * 取消订单
	 * @param {Object} id
	 */
	cancelOrder(id){
		return request.request({
			url: '/h5/nocorder/cancelOrder',
			method: 'post',
			data: {
				id: id
			}
		})
	},
	/**
	 * 确认收货
	 * @param {Object} id
	 */
	confirmReceipt(id){
		return request.request({
			url: '/h5/nocorder/confirmReceipt',
			method: 'post',
			data: {
				id: id
			},
		})
	},
	orderRepay(id,tradeType){
		return request.request({
			url: '/h5/nocorder/repay',
			method: 'post',
			data: {
				id: id,
				tradeType : tradeType
			}
		})
		
	},
	saveOrderPayLog(orderNum,remark){
		return request.request({
			url: '/h5/nocorderpaylog/save',
			method: 'post',
			data: {
				orderNum: orderNum,
				status: 0,
				remark: remark
			}
		})
	},
	queryOrderInfo(id){
		return request.request({
			url: '/h5/nocorder/queryOrderInfo',
			method: 'post',
			data: {
				id: id
			}
		})
	}
	
	
	
}